package net.ezsteam;

import net.ezsteam.cons.EzSteam_Urls;
import net.ezsteam.service.EzSteam_Appoinment_Service;
import net.ezsteam.view.EzSteam_HorizontialListView;


import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

public class EzSteam_Appoinment_Activity extends Activity {
	
	private String customerid="";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ezsteam_appoinments);
		
		Bundle extras = getIntent().getExtras();
		if (extras != null) {
			String cusid = extras.getString("cusid");
			customerid  = cusid;
		}
		
		ListView listview = (ListView) findViewById(R.id.listview_hori);
		
		EzSteam_Appoinment_Service eas = new EzSteam_Appoinment_Service(EzSteam_Appoinment_Activity.this,listview);
		eas.execute(EzSteam_Urls.GET_AllAppointments+"/"+customerid.trim());
		//eas.execute(EzSteam_Urls.GET_AllAppointments+"/23");
	}
}
